package com.atguigu.ssyx.order.client;

import com.atguigu.ssyx.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * Created with IntelliJ IDEA.
 * ClassName: OrderFeignClient
 * Package: com.atguigu.ssyx.order.client
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-10-17
 * Time: 18:02
 */

@FeignClient("service-order")
public interface OrderFeignClient {

    //根据OrderNo查询订单信息
    @GetMapping("api/order/inner/getOrderInfo/{orderNo}")
    public OrderInfo getOrderInfo(@PathVariable("orderNo") String orderNo);
}
